package com.videoaggre.zcl.helper.player

import android.content.Context
import com.kk.taurus.playerbase.receiver.ReceiverGroup
import com.videoaggre.zcl.helper.player.DataInter.ReceiverKey.*
import com.videoaggre.zcl.helper.player.cover.*

object ReceiverGroupManager {
    fun getVideoReceiverGroup(context: Context): ReceiverGroup {
        val receiverGroup = ReceiverGroup()
        receiverGroup.addReceiver(KEY_IMAGE_COVER, ImageCover(context))
        receiverGroup.addReceiver(KEY_LOADING_COVER, LoadingCover(context))
        receiverGroup.addReceiver(KEY_CONTROLLER_COVER, ControllerCover(context))
        receiverGroup.addReceiver(KEY_GESTURE_COVER, GestureCover(context))
        receiverGroup.addReceiver(KEY_COMPLETE_COVER, CompleteCover(context))
        receiverGroup.addReceiver(KEY_ERROR_COVER, ErrorCover(context))
        return receiverGroup
    }
}